const http = uni.$u.http

// post请求，获取订单列表
export const postOrderList = (params, config = { custom: { type: 'url' }}) => http.post('/storepayment/order/orderList', params, config)
// post请求，获取订单详情
export const postOrderDetail = (params, config = { custom: { type: 'url' }}) => http.post('/storepayment/order/orderDetail', params, config)
// post请求 ，获取商品详情
export const postOrderItemsDetail = (params, config = { custom: { type: 'url' }}) => http.post('/storepayment/order/orderItemsDetail', params, config)
// post,获取提货信息接口
export const postPickingProgressDetail = (params, config = { custom: { type: 'url' }}) => http.post('/storepayment/order/pickingProgressDetail', params, config)
// post ,获取物流轨迹
export const postTmsLogisticsInfo = (params, config = { custom: { type: 'url' }}) => http.post('/storepayment/order/tmsLogisticsInfo', params, config)
// 获取订单列表
export const getOrderList = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/order/orderstore/queryStoreOrders', params, config)
// 获取订单详情
export const getOrderDetail = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/order/orderstore/queryStoreOrderDetails', params, config)
// 检查商品
export const inspectShop = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/trade/checkCartProduct', params, config)
// 加入购物车
export const addShopCar = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/cart/addShoppingCartReturnSku', params, config)
// 确认收货
export const confrimRece = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/confirmreceipt/ConfirmReceipt', params, config)
// 取消订单
export const cancleOrder = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/cancle/cancleOrder', params, config)
// 删除订单
export const deleteOrder = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/orderstore/removeToRecycle', params, config)
// 查看发票
export const invoiceSee = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/orderstore/queryStoreOrderInvoiceDetails', params, config)
// 获取自提信息
export const getDrawInfo = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/orderstore/getSelfTakeDeliveryInfo', params, config)
// 转账汇款查询支付信息
export const getBankInfo = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/payment/getBankInfo', params, config)
// 支付单
export const savePayInfo = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/payment/app/save_pay_info', params, config)
// 获取支付签名
export const combinePay = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/payment/app/combine_pay', params, config)
// 转账确认
export const instantConfirm = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/order/payment/instantConfirm', params, config)
// 确认转账成功
export const queryMayArrivedIn = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/order/orderstore/queryMayArrivedIn', params, config)
// m站 调取支付宝支付接口 获取支付签名
export const McombinePay = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/payment/app/combine_pay', params, config)
// m站 获取小程序支付页URL-LINK
export const getMpPayurlLink = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/payment/applet/get-mp-pay-url-link', params, config)
// m站 微信支付时 仅生成流水
export const createPaySerialno = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/payment/app/create_pay_serialno', params, config)
// 订单取消走售后
export const applyrefund = (params, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/mobile/order/applyrefund/refund', params, config)
